package com.database.findmystuff;

import java.io.Serializable;

/**
 * 
 * @author Michael Azogu
 *
 */
public class Item implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -8336706216580052322L;
	private String name,category,description,location,contactInfo,status,date;
	
	/**
	 * This is the constructor.
	 * 
	 * @param category The item category
	 * @param category The item category
	 * @param description The item description
	 * @param contactInfo The user's contact information
	 * @param username The user name
	 */
	public Item(String name,String category,String description,String location,String contactInfo, String status,String date){
		this.name = name;
		this.category = category;
		this.description = description;
		this.location = location;
		this.contactInfo = contactInfo;
		this.status = status;
		this.date = date;
	}
	
	
	/**
	 * The getter for the item name
	 * 
	 * @return Returns the item category as a string
	 */
	public String getName(){
		return name;
	}
	
	/**
	 * The getter for the item category
	 * 
	 * @return Returns the item category as a string
	 */
	public String getCategory(){
		return category;
	}
	
	/**
	 * The getter for the description of the item
	 * 
	 * @return Returns the item description as a string
	 */
	public String getDescription(){
		return description;
	}
	
	/**
	 * The getter for the location of the item
	 * 
	 * @return Returns the item location as a string
	 */
	public String getLocation(){
		return location;
	}
	
	/**
	 * The getter for the user's contact information
	 * 
	 * @return Returns the contact information as a string
	 */
	public String getContactInfo(){
		return contactInfo;
	}
	
	/**
	 * The getter for the item status
	 * 
	 * @return Returns the status of the item as a string
	 */
	public String getStatus(){
		return status;
	}
	
	/**
	 * returns the date the item was added as a string
	 * @return the date as a string
	 */
	public String getDate(){
		return date;
	}
	
	/**
	 * Sets the Item category to whatever is specified
	 * 
	 * @param category The category of item as a string
	 */
	public void setName(String name){
		this.name = name;
	}
	
	/**
	 * Sets the Item category to whatever is specified
	 * 
	 * @param category The category of item as a string
	 */
	public void setCategory(String category){
		this.category = category;
	}
	
	/**
	 * Sets the Item description to whatever is specified
	 * 
	 * @param description The item description as a string
	 */
	public void setDescription(String description){
		this.description = description;
	}
	
	/**
	 * Sets the Item location to whatever is specified
	 * 
	 * @param location The item location as a string
	 */
	public void setLocation(String location){
		this.location = location;
	}
	
	/**
	 * Sets the user's contact information to whatever is specified
	 * 
	 * @param contactInfo The user's contact information as a string.
	 */
	public void setContactInfo(String contactInfo){
		this.contactInfo = contactInfo;
	}

	public void setStatus(String status){
		this.status = status;
	}
	
	
	@Override
	/**
	 * 
	 * @return Returns the item category when called.
	 */
	public String toString(){
		return ("Item name: "+name+"\nItem category: "+category+"\nItem Description: "+description+"\nLocation: "+location+"\nContact Info: "+contactInfo+"\nStatus: "+status+"\nDate: "+date);
	}
}
